package com.cx.ioc.dao.impl;

import com.cx.ioc.dao.UserDao;
import com.sun.org.apache.bcel.internal.generic.NEW;
import org.springframework.stereotype.Component;

/**
 * @author zhangshuai
 * @version V1.0
 * @Project Java2_26
 * @Package com.cx.io.dao.impl
 * @Description:
 * @Date 2025/5/29 8:20
 */
//spring创建对象注解    @Component @Repository @Service @Controller
//@Component  通用注解
//@Repository  dao层注解
//@Service     service层注解
//@Controller  控制器层注解
@Component("userDao")
public class UserDaoImpl implements UserDao {

    @Override
    public void add() {
        System.out.println("dao中调用了add方法");
    }
}